import java.util.Scanner;
import java.util.Random;

public class practise {
    public static void main(String[] args) {

    }


    public static void main1(String[] args) {
    Random random = new Random();
        int toGuess = random.nextInt(100);
        Scanner src = new Scanner(System.in);
        while(true){
            System.out.println("请输入要猜的1到100的数字 ");
            int n = src.nextInt();
            if(n > toGuess){
                System.out.println("大了");
            }else if(n < toGuess){
                System.out.println("小了");
            }else{
                System.out.println("猜对了");
                break;
            }
        }
    }
}
